<?php
class Default_Form_Login extends Zend_Form
{
    public function init()
    {
        $controller = Zend_Controller_Front::getInstance();
        
        $this->setMethod('post')
             ->setAction($controller->getBaseUrl().'/auth/login')
             ->setName('login_form');

        $this->addElement('text', 'email', array(
            'label'      => 'Epasts: ',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'validators' => array(
                'NotEmpty',
            )
        ));

        $this->addElement('password', 'pass', array(
            'label'      => 'Password: ',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'validators' => array(
                'NotEmpty',
            )
        ));

        $this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 'Login',
        ));

    }
}